package io.dshubs.archives.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.dshubs.commons.mybatis.entity.BaseTenantEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 库房表
 * </p>
 *
 * @author tan
 * @since 2021-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("archive_warehouse")
public class ArchiveWarehouse extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;

    @TableField("code")
    @ApiModelProperty("库房编号")
    private String code;


    @TableField("name")
    @ApiModelProperty("库房名称")
    private String name;


    @TableField("area")
    @ApiModelProperty("面积")
    private String area;


    @TableField("intensive_number")
    @ApiModelProperty("密集架组数")
    private Long intensiveNumber;


    @TableField("description")
    @ApiModelProperty("描述")
    private String description;


    @TableField("contact_name")
    @ApiModelProperty("联系人，负责人")
    private String contactName;


    @TableField("phone")
    @ApiModelProperty("手机号")
    private String phone;

    @TableField("contact_province")
    @ApiModelProperty("省")
    private String contactProvince;

    @TableField("contact_city")
    @ApiModelProperty("市")
    private String contactCity;

    @ApiModelProperty("区")
    @TableField("contact_district")
    private String contactDistrict;

    @TableField("address")
    @ApiModelProperty("位置")
    private String address;


    @TableField("status")
    @ApiModelProperty(" ENABLED  可用  UNENABLED不可用")
    private String status;


    @TableField("del_flag")
    @ApiModelProperty("删除标识  0：未删除    1：删除")
    private Integer delFlag;

    /**
     * 更新者
     */
    @TableField("updater")
    private Long updater;

    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;

    @TableField(exist = false)
    @ApiModelProperty("密集架共几层")
    private Integer layerNo;

    @TableField(exist = false)
    @ApiModelProperty("密集架共几格")
    private Integer columnNo;


    @TableField(exist = false)
    @ApiModelProperty("每一格的宽单位mm")
    private Long signCapacity;

    @TableField(exist = false)
    @ApiModelProperty("密集架起始规则")
    private String shelvingNoBeginRule;
}
